Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tableOptions parameter for inheritance on knex adapter options to pass on knex builder #3539

Open
wants to merge 2 commits into
base: dove
Choose a base branch
from

Conversation

fidelio314
Copy link

Add support on knex adapter to passe tableOptions on the Knex builder in order to support the option ONLY that discard the inheriting tables - For PostgreSQL only

Today the feathesjs-knex package was not able to pass the option:

{
  only: true
}

Here is the knex doc: https://knexjs.org/guide/query-builder.html#common

I propose a new knex specific adapter option called: tableOptions to be used on the getOptions method of the service class.

this can be passed on the db method on the knex adapter and therfore to the

Model(name, tableOptions)

@fidelio314 fidelio314 changed the title feat: add tableOptions parameter on knex adapter options to pass on knex builder feat: add tableOptions parameter for inheritance on knex adapter options to pass on knex builder Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant